package com.duowan.realtime.model.builder;

import java.util.List;
/**
 * @version 1.0
 * @author: tangsicheng
 * @date: 14-8-28
 * @since 1.0
 */
public class SqlJobDirector {

    private SqlJobBuilder sqlJobBuilder;

    public void construct(String sqlName,String kpiCode,List<String> dimList){
        sqlJobBuilder.buildSqlName(sqlName);
        sqlJobBuilder.buildSQLStatement(kpiCode,dimList);
        sqlJobBuilder.buildIntoRedis(kpiCode,dimList);
        sqlJobBuilder.buildIntoDb();
    }

    public SqlJobBuilder getSqlJobBuilder() {
        return sqlJobBuilder;
    }

    public void setSqlJobBuilder(SqlJobBuilder sqlJobBuilder) {
        this.sqlJobBuilder = sqlJobBuilder;
    }
}
